import request from '@/utils/request'
export function WeChatAccountSearch(data) {
  return request({
     url: '/traffic/channelTable',
     method: 'post',
     data
   })
}
export function WeChatAccountSearch2(data) {
  return request({
    url: '/traffic/channelHourTable',
    method: 'post',
    data
  })
}
export function getLineData(params) {
  return request({
    url: '/traffic/channelLineChart',
    method: 'post',
    data: params
  })
}
export function getBarData(params) {
  return request({
    url: '/traffic/customerBarChart',
    method: 'post',
    data: params
  })
}
// 微信公众号 dashboard 日指标和月指标
export function WeChatDailyIndex(data) {
  return request({
    url: '/traffic/channelHourTable',
    method: 'post',
    data
  })
}
export function WeChatMonthlyIndex(data) {
  return request({
    url: '/traffic/channelHourTable',
    method: 'post',
    data
  })
}
export function WeChatHourIndex(data) {
  return request({
    url: '/traffic/channelHourTable',
    method: 'post',
    data
  })
}
